package com.csun.cmny.provider.service;

import com.csun.cmny.base.dto.LoginAuthDto;
import com.csun.cmny.core.support.IService;
import com.csun.cmny.provider.dto.AdvisoryQueryDto;
import com.csun.cmny.provider.model.domain.OmcAdvisory;
import com.github.pagehelper.PageInfo;

public interface OmcAdvisoryService extends IService<OmcAdvisory> {

    /*
    * 保存咨询记录
    * */
    Integer saveAdvisory(OmcAdvisory omcAdvisory, LoginAuthDto loginAuthDto);

    /*
    * 根据id删除咨询记录
    * */
    Integer deleteAdvisoryById(Long advisoryId,LoginAuthDto loginAuthDto);

    /*
    * 分页查询咨询记录
    * */
    public PageInfo queryAdvisoryListWithPage(AdvisoryQueryDto advisoryQueryDto);

    /*
    * 更新咨询记录（mapper.update）
    * */
    Integer updateAdvisory(OmcAdvisory omcAdvisory);
}
